package com.heima.apis.article;

import com.heima.apis.article.fallback.ArticleClientFallback;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author:篍
 * @Date: 2025/09/24 15:35
 * @Description:
 */
@FeignClient(name="leadnews-article",fallback = ArticleClientFallback.class)
public interface ArticleClient {
    /**
     * 保存或者更新文章
     */
    @PostMapping("/api/v1/article/save")
    ResponseResult saveApArticle(@RequestBody ArticleDto dto);


}
